﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class ProductLimitMap : ClassMap<ProductLimit>
    {
        public ProductLimitMap()
        {
            Table("PRODUCT_LIMIT");
            Id(x => x.ProductLimitId, "PRODUCT_LIMIT_ID").GeneratedBy.Identity();
            Map(x => x.AssetClassId, "ASSET_CLASS_ID");
            Map(x => x.ProductLimitStartDate, "PRODUCT_LIMIT_START_DATE");
            Map(x => x.ProductLimitExpireDate, "PRODUCT_LIMIT_EXPIRE_DATE");
        }
    }
}
